package com.xtx.air.dao.flight.impl;

import java.util.List;

import com.xtx.air.dao.flight.IFlightDAO;
import com.xtx.air.dataobject.FlightDO;
import com.xtx.dao.BaseDAOImpl;

public class FlightDAOImpl extends BaseDAOImpl implements IFlightDAO {

	@Override
	public void addFlight(FlightDO flightDO) {
		executeInsert("INSERT-FLIGHT", flightDO);
	}

	@Override
	public List<FlightDO> findFlight(FlightDO flightDO) {
		return executeQueryForList("SELECT-FLIGHT", flightDO);
	}

	@Override
	public void updateFlight(FlightDO flightDO) {
		executeUpdate("UPDATE-FLIGHT", flightDO);
	}
}